#!/bin/sh
export PATH=$PATH:/usr/local/sbin:/usr/local/bin
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib/mav_engine/lib:/usr/local/lib/mysql
export RAV_INSTALLPATH=/usr/local/lib/mav_engine

SYSTEM_DIR=/system

mount -t proc none /proc
mount -o remount,rw /
mount -t debugfs none /debug
mount -t sysfs none /sys
mkdir /dev/pts
mount -t devpts none /dev/pts
hostname `cat /etc/hostname`
touch /etc/mtab
mdev -s
. /etc/functions

#. /etc/rcS2
#
# lo interface update
#
ifconfig lo 127.0.0.1 up
	
#
# define language environment variable
#
export LC_ALL=en_US.UTF-8

#
# run boot script
#
cp /proc/mounts /etc/mtab

link_rc_script

if [ "$nostartup" != "1" ];then
	for i in /etc/rc.d/S*; do
		if test -x $i; then
			date
			echo $i "starting ......"
			$i
		fi
	done
fi

